package 大四.作业1;

public class test {
    public static void main(String[] args) {
        int [][]a ={{1,2,3},{4,5,6}};
        int [][]b= new int[3][2];
        for(int i=0;i<3;i++){
            for(int j=0;j<2;j++){
                b[i][j]=a[j][i];
            }
        }
        System.out.print("{");
        for (int i = 0; i < 3; i++) {
            System.out.print("{");
            for (int j = 0; j < 2; j++) {
                if(j==1){
                    System.out.print(b[i][j]);
                }
                else {
                    System.out.print(b[i][j]+",");
                }
            }
            System.out.print("}");
        }
        System.out.print("}");
    }


}
class test1{
    public static void main(String[] args) {
        int x =20;
        int count=0;
        for (int i = 0; i < 100; i++) {
            x=x-3;
            x+=1;
            count++;
            if(x<=0){
                break;
            }
        }
        System.out.println(count);
    }

}
